package com.lgx.right.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import com.lgx.common.entity.IdGenerator;

/**
 * 用户信息扩展表
 * 
 * @author acer
 *
 */
@Entity
@Table(name = "TS_USER_EXPAND")
public class UserExpand  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6943819702745411557L;

	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator=IdGenerator.TS_USER_EXPAND_ID)
	@TableGenerator(
			name = IdGenerator.TS_USER_EXPAND_ID,
			table = IdGenerator.GENERATOR_TABLE,
			pkColumnName = IdGenerator.GEN_NAME,
			pkColumnValue = IdGenerator.TS_USER_EXPAND_ID,
			valueColumnName = IdGenerator.GEN_VALUE,
			initialValue = 1,
			allocationSize = 1
	)
	private long id;
	
	@ManyToOne
	@JoinColumn(name = "user_id")
	private User user;
	
	/**
	 * 等级
	 */
	private String degree;
	
	/**
	 * 级别
	 */
	private String level;
	
	/**
	 * 头像
	 */
	private String headImage;
	
	/**
	 * 功能类型，用户信息屏蔽时用到
	 */
	private String funType;
	
	/**
	 * 礼品记录
	 */
	private String giftRecord;
	
	/**
	 * 记录用户最后所在位置坐标
	 */
	private String points;
	
	/**
	 * 记录用户最后所在位置坐标的时间
	 */
	private Date pointRecordDate;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public String getFunType() {
		return funType;
	}

	public void setFunType(String funType) {
		this.funType = funType;
	}

	public String getGiftRecord() {
		return giftRecord;
	}

	public void setGiftRecord(String giftRecord) {
		this.giftRecord = giftRecord;
	}

	public String getPoints() {
		return points;
	}

	public void setPoints(String points) {
		this.points = points;
	}

	public Date getPointRecordDate() {
		return pointRecordDate;
	}

	public void setPointRecordDate(Date pointRecordDate) {
		this.pointRecordDate = pointRecordDate;
	}
}
